Skip to content

Python SDK Function for PDP List Role Assignments#64

Open
maya-barak wants to merge 1 commit intomainfrom
maya/per-9469-python-sdk-function-for-pdp-list-role-assignments
Open

Python SDK Function for PDP List Role Assignments#64
maya-barak wants to merge 1 commit intomainfrom
maya/per-9469-python-sdk-function-for-pdp-list-role-assignments

Conversation

@maya-barak
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread permit/pdp_api/pdp_api.py
params.update(dict(user=user))
if role is not None:
params.update(dict(role=role))
if tenant is not None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing resource condition

Comment thread permit/pdp_api/pdp_api.py
Comment on lines +68 to +69
class SyncEnforcer(PdpApi, metaclass=SyncClass):
pass
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment thread permit/pdp_api/pdp_api.py
resource_instance: Optional[str] = None,
page: int = 1,
per_page: int = 100,
) -> dict:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No schema ?

Comment thread permit/permit.py

Usage example:

permit = Permit(token
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing rest of the line

Comment thread tests/test_rbac_e2e.py


async def test_permission_check_e2e(permit: Permit):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment thread tests/test_rbac_e2e.py
logger.info("testing bulk permission check")
assert (
await permit.bulk_check(
await permit.pdp_api.list_role_assignment(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changing this

Copy link
Copy Markdown
Contributor

@RazcoDev RazcoDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some major comments - also, no interfaces ?

@danyi1212 danyi1212 closed this Apr 29, 2025
@danyi1212 danyi1212 reopened this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants